package com.xydzxt.www.service;


import com.xydzxt.www.dao.NewsDao;
import com.xydzxt.www.model.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//service层
@Service
public class NewsService {
    @Autowired
    NewsDao newsDao;
//    查询全部新闻
    public List<News> selectAll(News news){
        return  newsDao.selectAll(news);
    }

    public List<News> selectAll(String newsId){
        return newsDao.selectAll(newsId);
    }



}
